﻿using CarAppDomain.Base;
using SqlSugar;

namespace CarAppDomain.CarType.Entities
{
    /// <summary>
    /// 车辆表(车辆识别代码-VIN码表)：包含VIN码前11位、VIN码后6位、车系代码、车型代码、车型版本代码、发动机型号、发动机号码、变速箱型号、变速箱号码等信息。（车辆出厂标记信息）
    /// </summary>
    [SugarTable("car", TableDescription = "车辆表")]
    public class CarEntity : BaseEntity
    {
        /// <summary>
        /// VIN
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 20, IsNullable = false, ColumnDescription = "VIN")]
        public string? VIN { get; set; }

        /// <summary>
        /// 所属车系信息
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "所属车系信息")]
        public string? VehicleSeriesId { get; set; }

        /// <summary>
        /// 所属车型信息
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = true, ColumnDescription = "所属车型信息")]
        public string? CarTypeId { get; set; }

        /// <summary>
        /// 所属车型版本信息
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = true, ColumnDescription = "所属车型版本信息")]
        public string? CarTypeVersionId { get; set; }
    }
}
